#pragma once


// CSkinHeaderCtrl

class CSkinHeaderCtrl : public CHeaderCtrl
{
	DECLARE_DYNAMIC(CSkinHeaderCtrl)

private:
	CImageList		m_cImageList;

	int				m_nChkState;
	CWnd*			m_pParentWnd;
	int				m_nCtrlID;
	int				m_nFontHeight;
	int				m_nCheckBoxHeight;
	BOOL m_bCheckbox;

public:
	CSkinHeaderCtrl();
	virtual ~CSkinHeaderCtrl();

	void InitHeader(CWnd* pWnd);
	void InitHeader(CWnd* pWnd, BOOL bCheckbox, int nCtrlID, int nFontHeight);
	void SetCheck(int nCheck);

protected:
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	DECLARE_MESSAGE_MAP()

public:	
	virtual void DrawItem(LPDRAWITEMSTRUCT /*lpDrawItemStruct*/);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
};


